package com.zillion.employee.mapper;

import com.zillion.employee.domain.EmployeeReserve;
import com.zillion.employee.domain.PersonApply;
import com.zillion.employee.domain.PersonReserve;
import com.zillion.employee.domain.UnitReserve;
import com.zillion.employee.domain.vo.MineProgressVO;
import com.zillion.health.domain.vo.UISelectDataVo;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

public interface EmployeeReserveMapper {


    /**
     * 根据身份证查询员工信息
     *
     * @param idCard 身份证号
     * @return
     */
    PersonApply selectApplyInfoByIdCard(String idCard);

    /**
     * 根据园区id查询医院信息
     *
     * @param parkId 园区id
     * @return 医院信息
     */
    List<UISelectDataVo> selectHospitalInfoByParkId(Integer parkId);

    /**
     * 添加个人预约信息
     *
     * @param employeeReserve 预约信息
     * @return 添加结果
     */
    int addPeronReserve(EmployeeReserve employeeReserve);

    UnitReserve getUnitReserveInfo(String socialCreditCode);

    List<PersonReserve> getReservePersons(String socialCreditCode);

    int addUnitPersonReserve(@Param("unitReservePersons") List<EmployeeReserve> unitReservePersons);

    List<UISelectDataVo> loadAllHospitals();

    List<UISelectDataVo> loadAllHospitalAddress();

    MineProgressVO loadUserProgress(String idCard);
}
